package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.JztCustAddr;
import com.javaweb.admin.query.C37InfCkGttzdBillQuery;
import com.javaweb.admin.query.JztCustAddrQuery;
import com.javaweb.admin.vo.c37infckgttzdbill.C37InfCkGttzdBillListVo;
import com.javaweb.common.common.BaseQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface JztCustAddrMapper extends BaseMapper<JztCustAddr> {

    @Select("select isnull(convert(varchar(20),max(gengx_time),120),'2019-03-28 00:00:00') from jzt_custaddr_log")
    String GetMaxSyncTime();

    IPage<JztCustAddr> GetCustAddrPageList(IPage<JztCustAddr> page, @Param("req") JztCustAddrQuery req);

    List<JztCustAddr> GetCustAddrList(String ts);

    boolean InsertAddr(JztCustAddr entity);
}
